#pragma once
#include <windows.h>

// 从 VNC 代码提取出来。windows 消息处理
namespace WMShatter
{
bool IsSafeWM(HWND window, UINT msg, WPARAM wParam, LPARAM lParam);

LRESULT SafeDefWindowProc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam);

LRESULT SafeDispatchMessage(const MSG* msg);
}
